package main;

/**
 * Created by arianne on 2014-07-12.
 */
public class FizzBuzz {
    public static void main(String[] args) {
        for (int i=1; i<=100; i++) {
            handleInt(i);
        }
    }

    static void handleInt(int n) {
        boolean printed = false;
        printed = divBy3(n);
        printed = divBy5(n) || printed;
        if (!printed) {
            System.out.print(n);
        }
        System.out.println();
    }

    static boolean divBy3(int n) {
        if (n%3 == 0) {
            System.out.print("Fizz");
            return true;
        }
        return false;
    }

    static boolean divBy5(int n) {
        if (n%5 == 0) {
            System.out.print("Buzz");
            return true;
        }
        return false;
    }
}
